FROM openjdk:8
VOLUME /tmp
ADD target/service.jar service.jar
ENV TZ=Asia/Shanghai
RUN bash -c 'ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && touch /service.jar'
EXPOSE 8010
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/service.jar"]